package chapter1;

/**
 * 
 * @author wei
 *
 */
@Reviewed(reviewer = "xx",  date = 20140111)
public class Try1 {
	public static void main(String[] args) {
		// %[argument_index$][flags][width][.precision]conversion
		System.out.printf("The value is %.3f %n", Math.PI);

		/**
		 * flag 0:The result will be zero-padded conversion d:The result is
		 * formatted as a decimal integer
		 */
		System.out.printf("%1$05d %2$2s", 11, "2");

		System.out.print("\n");
		System.out.println("after");
		System.out.printf("%n");
		System.out.println("after");
		
		Point point = new Pixel();
		point.clear();
		
		//Type Casting
		Integer name  =1;
		Object obj = name;
		//javac is smart to determine if you are telling the truth at compile time!
		//name = (String)obj;
		
		//java.lang.ThreadGroup
		System.out.println(Thread.currentThread().getUncaughtExceptionHandler().getClass().getName());
		
	}
}
